// Fill out your copyright notice in the Description page of Project Settings.


#include "UserWidget/CustomCursorWidget.h"
#include "Components/SizeBox.h"

void UCustomCursorWidget::NativeTick(const FGeometry& MyGeometry, float InDeltaTime) {
	Super::NativeTick(MyGeometry, InDeltaTime);
	float PositionX, PositionY;
	GetOwningPlayer()->GetMousePosition(PositionX, PositionY);
	SetPositionInViewport(FVector2D(PositionX - Sizer->GetWidthOverride() / 3.f, PositionY - Sizer->GetHeightOverride() / 3.f));
}